<template>
  <div>
  <el-dialog :title="title" :visible.sync="dialogFormVisible" width="500px">
    <el-divider></el-divider>
    <el-form v-model="row" style="margin: 30px 150px 30px 50px;">
      <el-form-item>
        <el-input type="textarea" rows="4" v-model="row.checkRemark" placeholder="请输入审核失败原因(非必填)"></el-input>
      </el-form-item>
    </el-form>
    <el-divider></el-divider>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取消审核</el-button>
      <el-button type="primary" @click="update">确 定</el-button>
    </div>
  </el-dialog></div>
</template>

<script>
  export default {
    data() {
      return {
        dialogFormVisible: false,
        title: "审核失败",
        row: [],
        id: 0,
      }
    },
    methods: {
      // 拒绝审核
      update(row) {
        var id = this.id;
        var checkStatus = 2;
        var checkRemark = this.row.checkRemark;
        this.parent.update({id,checkStatus,checkRemark},"拒绝审核成功")
        // console.log(this.row);

      },
    },
    props: ['parent']
  }
</script>

<style>
</style>
